from django.contrib import admin
from django.urls import path, include

from xiaochengxu.views import account, sns, topic

urlpatterns = [
    path('get_open_id', account.GetOpenId.as_view()),
    path('login', account.Login.as_view()),

    path('create_sns', sns.CreateSns.as_view()),
    path('get_sns_list', sns.GetSnsList.as_view()),
    path('get_sns_detail/<pk>/', sns.GetSnsDetail.as_view()),
    path('create_comment', sns.CreateComment.as_view()),
    path('get_comment', sns.GetComment.as_view()),
    path('get_topic', topic.GetTopic.as_view()),
    path('credential', sns.Credential_view.as_view()),
    path('test', sns.Test.as_view()),

]
